/* If this is the first time the script is run, we ask the user to run the configscript */
if(firsttime) then
do
address(thorport)
REQUESTNOTIFY TEXT '"It seems that you''re running this script for\nthe first time. It is very likely that you\nneed to change some of the defaults for this\nscript to work. Press Configure to configure\nthis script now, or Abort to quit the script."' BT '"_Configure|_Abort"'
REQUESTNOTIFY TEXT '"' || 'The file ' || realfilename.i || ' has been recognized as ' || filetype.j.name || '.\nWhich action would you like to perform on it?' || '"' BT '"'choices'"'
action = result
if(action ~= 0) then
do
/* substitute internal vars with actual meaning */